//
//  NotifyUtils.m
//  Meets-ios
//
//  Created by liumingkong on 14-7-16.
//  Copyright (c) 2014年 meets. All rights reserved.
//

#import "NotifyUtils.h"

@implementation NotifyUtils

+ (void) sendNotify:(NSDictionary *) notifyInfo forKey:(NSString *) key {
    NSNotification *notification = [NSNotification notificationWithName:key object:nil userInfo:notifyInfo];
    [[NSNotificationCenter defaultCenter] postNotification:notification];
}

+ (void) registerNotify:(id) observer selector:(SEL) aSelector forKey:(NSString *) key {
    [[NSNotificationCenter defaultCenter] addObserver:observer selector:aSelector name:key object:nil];
}

+ (void) unregisterNotify:(id) observer forKey:(NSString *) key {
    [[NSNotificationCenter defaultCenter] removeObserver:observer name:key object:nil];
}

@end
